﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;
using System.ServiceModel.Channels;
namespace K.ClientPublic
{
    public static class SOAPService<T>
    {
        //这里分三类创建通道
        //1、已知基地址与绑定类型
        //2、已知基地址
        //3、无参数

        
        # region 已知基地址与绑定类型

        /// <summary>
        /// 创建通道
        /// </summary>
        /// <param name="baseUri">基地址</param>
        /// <param name="binding">绑定类型</param>
        /// <returns></returns>
        /*
        public static T CreateRemoteObject(
            Binding binding,
            string baseUri)
        {
            ChannelFactory<T> RemoteChannelFactory = new ChannelFactory<T>(binding, baseUri);
            //RemotingPublic
            //return RemoteChannelFactory.CreateChannel();
            T i;
            return i;
            //ChannelFactory<

        }*/

        
        # endregion
    }
}
